<script id="demo" type="text/javascript">
$(document).ready(function() {
	// validate signup form on keyup and submit
	 $("#KeywordAddForm").validate({
             errorElement: 'span',
		rules: {
                        "data[Keyword][keyword]":{required: true},
                        "data[Keyword][destination_url]":{required: true,url:true},
			 terms: "required"
		},
		messages: {
                     
			terms: " "
		},errorPlacement: function(error, element) {
                           $(element).parent().addClass("error");
                           error.appendTo( element.parent());
		},
		// set this class to error-labels to indicate valid fields
		success: function(label) {                     
			  $(label).parent().removeClass("error");
		}

	});



});
</script>
<div>
    <!--  Tab 2 content -->
<?php echo $form->create('Keyword');?>
    <div class="fields">
        <h2><?php __('Add Keyword');?></h2>
        <p>
            <label for="name01" class="small">Website</label>
            <?php  echo $form->input('website_id',array("div"=>false,"label"=>false,"class"=>"sSelect")); ?>
        </p>
        <p>
            <label class="small" for="prename01">Keyword</label>
            <?php echo $form->input('keyword',array("div"=>false,"label"=>false,"class"=>"sText"));?>
        </p>
        <p>
            <label class="small" for="prename01">Campaign</label>
            <?php echo $form->input('campaign_reference',array("div"=>false,"label"=>false,"class"=>"sText"));?>
        </p>
        <p>
            <label class="small" for="prename01">Destination url</label>
            <?php echo $form->input('destination_url',array("div"=>false,"label"=>false,"class"=>"sText"));?>
        </p>



        <div class="fields">
            <h2></h2>
            <p class="tright">
                <?php echo $form->submit(__('Save',true),array("div"=>false,"class"=>"butDef"));?>                                
                <?php echo $this->Html->link(__('Cancel', true), array('action' => 'index'),array("class"=>"butSim"),false); ?>
                
            </p>
        </div>

    </div>
    <?php echo $form->end();?>
</div>

